GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( a545f1...cdb95b )
by Vladimir
27s
created

index.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
/**
2
 * Application entry point.
3
 *
4
 * @alias App.
5
 */
6
7
const express = require('express');
8
const bodyParser = require('body-parser');
9
const socketIo = require('socket.io');
10
11
const cors = require('./middlewares/cors');
12
const xPoweredBy = require('./middlewares/xPoweredBy');
13
const routes = require('./routes/index');
14
15
require('./configs/main');
16
17
// Init app.
18
const app = express();
19
const server = app.listen(global.APP_PORT);
20
global.socket = socketIo.listen(server);
21
22
// Configure app.
23
app.use(express.static('./src/public'));
24
app.set('views', './src/views');
25
app.set('view engine', 'pug');
26
app.use(bodyParser.json());
27
app.use(bodyParser.urlencoded({ extended: true }));
28
app.use(cors);
29
app.use(xPoweredBy);
30
app.use('/', routes);
31